# coding: utf-8
'''
Created on May 18, 2011

@author: Adam Matysiak
'''
import unittest
import ListTDL as tdl

from tfct.tdl import parser
from tfct.tdl import model

class Test(unittest.TestCase):  
    def setUp(self):
        self.manager = model.TDL({'screenspec': {}})
        self.tdl = tdl.ListTDL()
        self.conf = {}
      
    def testTC1_1(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC1_1())
        self.assertEqual(tc, self.tdl.genTC1_2())
      
    def testTC1_2(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC1_2())
        self.assertEqual(tc, self.tdl.genTC1_2())
      
    def testTC2(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC2())
        self.assertEqual(tc, self.tdl.genTC2())
      
    def testTC3_1(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC3_1())
        self.assertEqual(tc, self.tdl.genTC3_1())
      
    def testTC3_2(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC3_2())
        self.assertEqual(tc, self.tdl.genTC3_2())
      
    def testTC3_3(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC3_3())
        self.assertEqual(tc, self.tdl.genTC3_3())
      
    def testTC3_4(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC3_4())
        self.assertEqual(tc, self.tdl.genTC3_4())
      
    def testTC4(self):
        t = parser.TDLParser()
        tc = t.run_text(self.tdl.getTC4())
        self.assertEqual(tc, self.tdl.genTC4())
      
    def testTC5_1(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC5_1())
        self.assertEqual(tc, self.tdl.genTC5_1())
      
    def testTC5_2(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC5_2())
        self.assertEqual(tc, self.tdl.genTC5_2())
      
    def testTC6(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC6())
        self.assertEqual(tc, self.tdl.genTC6())
      
    def testTC7(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC7())
        self.assertEqual(tc, self.tdl.genTC7())
      
    def testTC8_1(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC8_1())
        self.assertEqual(tc, self.tdl.genTC8_1())
      
    def testTC8_2(self):
        t = parser.TDLParser(self.conf)
        tc = t.run_text(self.tdl.getTC8_2())
        self.assertEqual(tc, self.tdl.genTC8_2())
    
if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testCreate']
    unittest.main()